package com.weds.edwx.service;

import com.weds.core.base.BaseService;
import com.weds.edwx.entity.TmpDtDepReq;
import com.weds.edwx.entity.TmpDtUserEntity;
import com.weds.edwx.entity.TmpDtUserReq;
import com.weds.edwx.mapper.LeCaiDepUserMapper;
import com.weds.edwx.mapper.TmpDtUserMapper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author sjm
 * @Description 临时部门表 临时人员表 数据处理
 * @Date 2020-04-07
 */
@Service
public class LeCaiDepUserService extends BaseService {

    @Resource
    private LeCaiDepUserMapper leCaiDepUserMapper;

    private Logger log = LogManager.getLogger();


    public int deleteTmpDtDep(){return leCaiDepUserMapper.deleteTmpDtDep();}


    public int insertTmpDtDep(TmpDtDepReq tddr){return leCaiDepUserMapper.insertTmpDtDep(tddr);}


    public int deleteTmpDtUser(){return leCaiDepUserMapper.deleteTmpDtUser();}

    public int insertBatch(List<TmpDtUserReq> list) {
        return leCaiDepUserMapper.insertBatch(list);
    }
}
